package com.ruoyi.adapayBalanceRecord.mapper;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.ruoyi.adapayBalanceRecord.domain.AdapayBalanceRecord;
import org.apache.ibatis.annotations.Param;

/**
 * 余额流水Mapper接口
 *
 * @author ch
 * @date 2022-02-28
 */
public interface AdapayBalanceRecordMapper
{
    /**
     * 查询余额流水
     *
     * @param id 余额流水主键
     * @return 余额流水
     */
    public AdapayBalanceRecord selectAdapayBalanceRecordById(Long id);

    /**
     * 查询余额流水列表
     *
     * @param adapayBalanceRecord 余额流水
     * @return 余额流水集合
     */
    public List<AdapayBalanceRecord> selectAdapayBalanceRecordList(AdapayBalanceRecord adapayBalanceRecord);

    /**
     * 新增余额流水
     *
     * @param adapayBalanceRecord 余额流水
     * @return 结果
     */
    public int insertAdapayBalanceRecord(AdapayBalanceRecord adapayBalanceRecord);

    /**
     * 修改余额流水
     *
     * @param adapayBalanceRecord 余额流水
     * @return 结果
     */
    public int updateAdapayBalanceRecord(AdapayBalanceRecord adapayBalanceRecord);

    /**
     * 删除余额流水
     *
     * @param id 余额流水主键
     * @return 结果
     */
    public int deleteAdapayBalanceRecordById(Long id);

    /**
     * 批量删除余额流水
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAdapayBalanceRecordByIds(Long[] ids);

    /**
     * 批量逻辑删除余额流水
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int logicDeleteAdapayBalanceRecord(@Param("array")Long[] ids,@Param("delType")String delType,@Param("delUser")Long delUser);

    BigDecimal selectData(@Param("storeId") Long storeId, @Param("createTime") Date date);
}
